package edu.hubu.talentmanagementsystem.model.ext;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import edu.hubu.talentmanagementsystem.model.Model;

import java.io.Serializable;

/**
 * <p>
 * 员工考勤表
 * </p>
 *
 * @author moonlan
 * @since 2021-03-13
 */
@TableName("staff_attendance")
public class StaffAttendance extends Model<StaffAttendance> implements Serializable {


    /**
     * 员工考勤ID
     */
    @TableId(value = "staff_attendance_id", type = IdType.AUTO)
    private Integer staffAttendanceId;

    /**
     * 打卡日期
     */
    @TableField("staff_attendance_date")
    private LocalDate staffAttendanceDate;

    /**
     * 员工考勤是否打卡
     */
    @TableField("staff_attendance_finished")
    private Boolean staffAttendanceFinished;

    /**
     * 考勤备注
     */
    @TableField("staff_attendance_desc")
    private String staffAttendanceDesc;

    public Integer getStaffAttendanceId() {
        return staffAttendanceId;
    }

    public StaffAttendance setStaffAttendanceId(Integer staffAttendanceId) {
        this.staffAttendanceId = staffAttendanceId;
        return this;
    }

    public LocalDate getStaffAttendanceDate() {
        return staffAttendanceDate;
    }

    public StaffAttendance setStaffAttendanceDate(LocalDate staffAttendanceDate) {
        this.staffAttendanceDate = staffAttendanceDate;
        return this;
    }

    public Boolean getStaffAttendanceFinished() {
        return staffAttendanceFinished;
    }

    public StaffAttendance setStaffAttendanceFinished(Boolean staffAttendanceFinished) {
        this.staffAttendanceFinished = staffAttendanceFinished;
        return this;
    }

    public String getStaffAttendanceDesc() {
        return staffAttendanceDesc;
    }

    public StaffAttendance setStaffAttendanceDesc(String staffAttendanceDesc) {
        this.staffAttendanceDesc = staffAttendanceDesc;
        return this;
    }

    @Override
    public String toString() {
        return "StaffAttendance{" +
                "staffAttendanceId=" + staffAttendanceId +
                ", staffAttendanceDate=" + staffAttendanceDate +
                ", staffAttendanceFinished=" + staffAttendanceFinished +
                ", staffAttendanceDesc=" + staffAttendanceDesc +
                "}";
    }
}
